public abstract class Hexagon extends GeometricObject{
    private   double Side_length;




    public Hexagon() {
    }
    public void setSide_length(double side_length) {
        this.Side_length = side_length;
    }

    public double getSide_length() {
        return Side_length;
    }
    public Hexagon (double Side_length){
         this.Side_length=Side_length;

    }



    @Override /** Return area */
    public double getArea() {
        return 6*Side_length;
    }

    @Override /** Return perimeter */
    public double getPerimeter() {
        return 3*Math.sqrt(3)*(Side_length);
    }

    // Implement the compareTo method defined in Comparable

}



